﻿<UserControl
    x:Class="ITPaloozaPCL.WindowsStoreApp.Controls.WindowsStorePCLControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ITPaloozaPCL.WindowsStoreApp.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ViewModels="using:ITPaloozaPCL.WindowsStoreApp.ViewModels"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/WindowsStoreItemTemplate.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <ViewModels:MainViewModel x:Name="ControlViewModel" />
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid DataContext="{Binding Source={StaticResource ControlViewModel}}">
        <ListView ItemsSource="{Binding PriceList}" ItemTemplate="{Binding Source={ StaticResource ListViewDataTemplate}}">
        </ListView>
    </Grid>
</UserControl>
